"""
    测试达达商城登录功能
    请求地址：http://127.0.0.1:8000/v1/tokens
    请求方式：POST
    请求体： {"username":xxx, "password":xxx, "carts":xx}
"""

import requests

url = "http://127.0.0.1:8000/v1/tokens"
data = {
    "username": "zhaoliying",
    "password": "123456",
    "carts": 0
}

resp = requests.post(url=url, json=data)

print(resp.json())























